//
//  MusicListTableViewCell.m
//  MyMusic
//
//  Created by mac on 2019/4/12.
//  Copyright © 2019 YangYang. All rights reserved.
//

#import "MusicListTableViewCell.h"


@interface MusicListTableViewCell ()

@property (nonatomic, strong) UILabel *songNameView;

@end

@implementation MusicListTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _songNameView = [[UILabel alloc] init];
        [self.contentView addSubview:_songNameView];
        _songNameView.textColor = [UIColor blackColor];
        _songNameView.font = [UIFont systemFontOfSize:15];
        [_songNameView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView.mas_left).mas_offset(20);
            make.top.mas_equalTo(self.contentView.mas_top).mas_offset(5);
        }];
        
        
        
        
    }
    return self;
}

-(void)setMusicListModel:(AlbumModel *)musicListModel
{
    _musicListModel = musicListModel;
    _songNameView.text = musicListModel.songName;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
